import socket
client=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client.connect(('127.0.0.1',9000))

while True:
    ret_data = input('>>>').encode('utf-8')
    client.send(ret_data)
    msg=client.recv(1024).decode('utf-8')
    print(msg)


# client.send('AK你好啊'.encode('utf-8'))
# data=client.recv(1024)
# print(data.decode('utf-8'))
client.close()


